package com.example.userpointmgr.map;

import com.example.userpointmgr.dao.ReviewDto;
import com.example.userpointmgr.dao.ReviewPo;
import com.example.userpointmgr.dao.ConfirmDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReviewMapper {
    //查询全部
    List<ReviewPo> findAllUsers(@Param("offset") int offset, @Param("pageSize") int pageSize);
    //查询总数 用于分页
    public int total();
    //处理审核状态
    public int updateReviewById(ReviewDto reviewDto);
    public int reviewAdd(ReviewPo reviewPo);
    public int updatePoint(ConfirmDto confirmDto);
}
